package level_ajax_query;

import level_ajax_query.dao.CityDao;
import level_ajax_query.entry.City;

import java.util.Iterator;
import java.util.List;

/**
 * @Author Rookie Coder
 * @Description
 * @Date
 **/
public class JDText {
    public static void main(String[] args) {
//        JDBCUtil jdbcUtil=new JDBCUtil();
//        Connection connection = jdbcUtil.getConnection();
//        System.out.println(connection);
//        jdbcUtil.closeAll(connection,null,null);
//
//        ProvinceDao provinceDao=new ProvinceDao();
//        List<Province> province = provinceDao.findProvince();
//        Iterator<Province> iterator = province.iterator();
//        while (iterator.hasNext()){
//            Province next = iterator.next();
//            System.out.println(next);
//        }
        CityDao cityDao=new CityDao();
        List<City> city = cityDao.getCity(1);
        Iterator<City> iterator = city.iterator();
        while (iterator.hasNext()){
            City next = iterator.next();
            System.out.println(next);
        }

    }
}
